<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>学校新闻</title>
</head>
<script src="jquery-3.5.1.min.js"></script>
<script>
$(function(){
var str=obj.getText();
var json=JSON.parse(str);//转换为json对象
$.each(json,function(idx,title){
console.log(title);
$("#newSul").append('<li>'+title+'</li>');
});
})
</script>

<body>
<p id="title" style="text-align:center">学校新闻</p >
<ul  id="newSul" style="margin:0 auto;width:400px">
<li>新闻标题</li>
</ul>
</body>
</html>